package com.shushan.shushanbao.wxapi.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: OrderBean
 * @Desciption: vip订单bean
 * @author: yichaohua
 * @date: 2018-09-19
 */
public class OrderBean extends NetBaseBean {

    public int id;
    public int goods_id;
    public int goods_count;
    public String out_trade_no;
    public String pay_trade_no;
    public int stars;
    public int integral;
    public double money;
    public int type;
    public int state;
    public String create_time;
    public String pay_time;
    public String phone;
    public String trade_type;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        id = jsonObject.optInt("id",0);
        goods_id = jsonObject.optInt("goods_id",0);
        goods_count = jsonObject.optInt("goods_count",0);
        out_trade_no = jsonObject.optString("out_trade_no","");
        pay_trade_no = jsonObject.optString("pay_trade_no","");
        stars = jsonObject.optInt("stars",0);
        integral = jsonObject.optInt("integral",0);
        money = jsonObject.optDouble("money",0);
        type = jsonObject.optInt("type",0);
        state = jsonObject.optInt("state",0);
        create_time = jsonObject.optString("create_time","");
        pay_time = jsonObject.optString("pay_time","");
        phone = jsonObject.optString("phone","");
        trade_type = jsonObject.optString("trade_type","");
    }
}
